<?php //use_helper('DateForm'); ?>
<?php use_helper('Date'); ?>
<div class="content">
    <div id="sf_admin_container">
        <h1>Statistiques</h1>

        <div id="sf_admin_header">
        </div>

        <div id="sf_admin_content">

            <div class="sf_admin_form">
                <form method="post" action="/backend_aramis.php/site" enctype="multipart/form-data">
                    <input type="hidden" name="partner_id" id="partner_id" value="all">
                    <div id="sf_admin_form_tab_menu" class="ui-tabs ui-widget ui-widget-content ui-corner-all">

                        <div id="sf_fieldset_visites" >
                            <div class="sf_admin_form_row">
                                <?php
                                $years = range(date('Y')-10, date('Y'));
                                $w = new sfWidgetFormDateRange(array(
                                                'from_date' => new sfWidgetFormDate(array(
                                                        "format" => "%year%年%month%月%day%日",
                                                        "years" => array_combine($years, $years)
                                                        )),
                                                'to_date' => new sfWidgetFormDate(array(
                                                        "format" => "%year%年%month%月%day%日",
                                                        "years" => array_combine($years, $years)
                                                        )),
                                                 'template'  => 'Begin at: %from_date% End at: %to_date%'
                                    ));
                                echo $w->render("stats");

                                echo "&nbsp;&nbsp; <input type='button' name='btn_stats' id='btn_stats' value='Statistiques'>";

                                ?>
                            </div>

                            <div class="sf_admin_form_row">
                                <input name="start_date" id="form_date_start" type="text"/>
                                &nbsp;&nbsp; to &nbsp;&nbsp;
                                <input name="delivery_date" id="form_date_end" type="text"/>
                            </div>

                            <div class="sf_admin_form_row" id="statistic_chart" name="statistic_chart">
                            </div>

                        </div>

                    </div>
                </form>
            </div>
        </div>

        <div id="sf_admin_footer">
        </div>

        <div id="debug_div">
        </div>
    </div>
</div>
<?php
echo "<script type=\"text/javascript\" src=\"/js/backend/statistic/testChartAction.js\">";
echo "</script>";
?>
